import java.util.HashMap;

public class StringFormat {
    public static void main(String[] args) {
        String url = "http://%s:%s/user/hive/warehouse";
        String hadoop102 = String.format(url, "hadoop102", "9870");
        System.out.println(hadoop102);
        HashMap<String, String> map = new HashMap<>();
        map.put("qer","er");
        map.put("qer1","er1");
        map.put("qer2","er2");
    }
}
